object Test07 {
  def main(args: Array[String]): Unit = {
    val t = new Test07() //访问静态成员变量
    t.eat()
  }
}
//class类称为object的伴生类，object称为class的伴生对象，可互相访问
class Test07 {
  private val name: String = "小明"

  private def eat(): Unit = {
    println(name+"是吃货！")
  }
}
